Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix duck array ops that were calling bottleneck on sparse arrays #3254

Merged
merged 1 commit into from
Aug 24, 2019

Conversation

shoyer
Copy link
Member

@shoyer shoyer commented Aug 23, 2019

min and max are now working.

notnull was already fixed by one of my earlier PRs.

std/var/median are still broken, but only because sparse hasn't implemented
the corresponding NumPy functions yet (nanstd, nanvar and nanmedian).

rank needs pure NumPy implementation (not via bottleneck) if we want it to
work on sparse or dask arrays.

  • Tests added
  • Passes black . && mypy . && flake8

min and max are now working.

notnull was already fixed by one of my earlier PRs.

std/var/median are still broken, but only because sparse hasn't implemented
the corresponding NumPy functions yet (nanstd, nanvar and nanmedian).

rank needs pure NumPy implementation (not via bottleneck) if we want it to
work on sparse or dask arrays.
@max-sixty max-sixty self-requested a review August 23, 2019 20:05
@shoyer shoyer merged commit 3f1b879 into pydata:master Aug 24, 2019
@shoyer shoyer deleted the sparse-no-bottleneck branch August 24, 2019 05:30
dcherian added a commit to dcherian/xarray that referenced this pull request Aug 26, 2019
* upstream/master:
  Initialize empty or full DataArray (pydata#3159)
  Raise on inplace=True (pydata#3260)
  added support for rasterio geotiff tags (pydata#3249)
  Remove sel_points (pydata#3261)
  Fix sparse ops that were calling bottleneck (pydata#3254)
  New feature of filter_by_attrs added (pydata#3259)
  Update filter_by_attrs to use 'variables' instead of 'data_vars' (pydata#3247)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants